<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
global $mainframe;
?>

<div id = "main_page_search">
	<form action="<?php echo $component_url; ?>" method="post" name="queryForm" target="_top" 
		id="bookstore_queryForm" class="form-bookstore_query">
		
		<div id = "query">
			<input id = "search_button" type = "image" src = "images/search_button.png" name = "submit"
				alt = "search button" />
			<input name = "terms" id = "query_box" class = "inputbox"
				value = "<?php $term->keyword = JRequest::getVar('terms', '');
				JFilterOutput::objectHTMLSafe( $term ); echo $term->keyword; ?>" />
		</div>
		
	</form>
</div>